package com.example.mymvp_2.Retrofit02.Modle;

import com.example.mymvp_2.Base.BaseModel;
import com.example.mymvp_2.Bean.Channel;
import com.example.mymvp_2.Bean.Weather;

import retrofit2.Call;

public class Retrofit2Modle extends BaseModel {

    public Call<Weather> getRetrofit2(String name){
//         return getService().getWeather(name);
        return getService().getWeather("api",name);
    }

    public Call<String> PostRetrofit(){
        return getService2().getNews("tiyu","9161a87193d700470bed34e3522857d2");
    }
    public Call<Channel> XMLRetrofit(){
        return getService3().getChannel();
    }
}
